/*
 * @Description: 表单校验规则
 * @Author: qingyang
 * @Date: 2022-08-22 17:46:03
 * @LastEditors: qingyang
 * @LastEditTime: 2022-08-24 11:21:41
 */

export const rules = {
  productId: [
    {
      required: true,
      message: '必填项',
      trigger: ['submit', 'change']
    }
  ],
  productModel: [
    {
      required: true,
      message: '必填项',
      trigger: ['submit', 'change']
    }
  ],
  productName: [
    {
      required: true,
      message: '必填项',
      trigger: ['submit', 'change']
    }
  ],
  productDesc: [
    {
      required: true,
      message: '必填项',
      trigger: ['submit', 'change']
    }
  ],
  enterpriseNo: [
    {
      required: true,
      message: '必填项',
      trigger: ['submit', 'change']
    }
  ],
  version: [
    {
      required: true,
      message: '必填项',
      trigger: ['submit', 'change']
    }
  ]
};
